boundness function from a graph